package com.rd.student.dashuju.zhengruixian.test0807;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Random;

public class DaLeTou {
    public static void main(String[] args) throws IOException {
        BufferedOutputStream bos = new BufferedOutputStream(
                new FileOutputStream("daletou.txt"));
        Random r = new Random();
        Random r1=new Random();
        int a[] = new int[5];
        int a1[]=new int[2];
        for (int i = 0; i < 5; i++) {
            for (int j=0;j<2;j++){
                a1[j]= r1.nextInt(12);
            }
            a[i] = r.nextInt(35);
        }
        for (int i=0;i<5;i++) {
            bos.write(String.valueOf(a[i]).getBytes());
            bos.write(",".getBytes());
        }
        for (int j=0;j<2;j++){
            bos.write(String.valueOf(a1[j]).getBytes());
            bos.write("|".getBytes());
        }
            bos.close();
        }
    }

